import time
from threading import Thread


def countdown(n):
    while n > 0:
        print("T-minus", n)
        n -= 1
        time.sleep(1)


# 创建一个线程
if __name__ == '__main__':
    t = Thread(target=countdown, args=(5, ))
    t.start()

    # 等待子线程完成
    t.join()

    if t.is_alive():
        print("Still running!")
    else:
        print("Completed!")
